<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: imminit.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00299.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">imminit.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03623_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00299_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a81332b01aad4798dfadc108e4b7f70c5"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00299.html#a81332b01aad4798dfadc108e4b7f70c5">ImmRegisterClient</a> (IN <a class="el" href="a00365.html#ae719c000325ce162bc440a86312a88c5">PSHAREDINFO</a> psiClient)</td></tr>
<tr class="separator:a81332b01aad4798dfadc108e4b7f70c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa496143b0f51211dd7787e253acfbd9"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00299.html#afa496143b0f51211dd7787e253acfbd9">ImmDllInitialize</a> (IN PVOID hmod, IN <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> Reason, IN PCONTEXT pctx OPTIONAL)</td></tr>
<tr class="separator:afa496143b0f51211dd7787e253acfbd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c5df31e4454c1b801c9cc8dc49ed7f"><td class="memItemLeft" align="right" valign="top">PVOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00299.html#aa4c5df31e4454c1b801c9cc8dc49ed7f">UserRtlAllocMem</a> (ULONG uBytes)</td></tr>
<tr class="separator:aa4c5df31e4454c1b801c9cc8dc49ed7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e5f86f5ec24b989012a66ead19ac73"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00299.html#a11e5f86f5ec24b989012a66ead19ac73">UserRtlFreeMem</a> (PVOID pMem)</td></tr>
<tr class="separator:a11e5f86f5ec24b989012a66ead19ac73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fcbeedd003f73b5cd3f896883dd1b37"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00299.html#a3fcbeedd003f73b5cd3f896883dd1b37">UserRtlRaiseStatus</a> (NTSTATUS Status)</td></tr>
<tr class="separator:a3fcbeedd003f73b5cd3f896883dd1b37"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="afa496143b0f51211dd7787e253acfbd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa496143b0f51211dd7787e253acfbd9">&#9670;&nbsp;</a></span>ImmDllInitialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL ImmDllInitialize </td>
          <td>(</td>
          <td class="paramtype">IN PVOID&#160;</td>
          <td class="paramname"><em>hmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>Reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN PCONTEXT pctx&#160;</td>
          <td class="paramname"><em>OPTIONAL</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00299_source.html">imminit.c</a> 第 <a class="el" href="a00299_source.html#l00024">24</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    UNREFERENCED_PARAMETER(pctx);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">switch</span> ( Reason ) {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">case</span> DLL_PROCESS_ATTACH:</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        RtlInitializeCriticalSection(&amp;<a class="code" href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a>);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">         * Remember IMM32.DLL&#39;s hmodule so we can grab resources from it later.</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="a03254.html#a10bde0fee9a1b44eafd17dfae0807a12">ghInst</a> = hmod;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="a03254.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a> = RtlProcessHeap();</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">case</span> DLL_PROCESS_DETACH:</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        RtlDeleteCriticalSection(&amp;<a class="code" href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">case</span> DLL_THREAD_ATTACH:</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">case</span> DLL_THREAD_DETACH:</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03254_source.html#l00020">gcsImeDpi</a>, <a class="el" href="a03254_source.html#l00014">ghInst</a> , 以及 <a class="el" href="a03254_source.html#l00015">pImmHeap</a>.</p>

</div>
</div>
<a id="a81332b01aad4798dfadc108e4b7f70c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81332b01aad4798dfadc108e4b7f70c5">&#9670;&nbsp;</a></span>ImmRegisterClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID ImmRegisterClient </td>
          <td>(</td>
          <td class="paramtype">IN <a class="el" href="a00365.html#ae719c000325ce162bc440a86312a88c5">PSHAREDINFO</a>&#160;</td>
          <td class="paramname"><em>psiClient</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00299_source.html">imminit.c</a> 第 <a class="el" href="a00299_source.html#l00016">16</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a> = *psiClient;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a> = <a class="code" href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a>.<a class="code" href="a02521.html#a6da4f30e256d1a1a5920b1d0a2ec73c2">psi</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a00020_source.html#l00040">gSharedInfo</a> , 以及 <a class="el" href="a00365_source.html#l01059">tagSHAREDINFO::psi</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00035_source.html#l00058">UserClientDllInitialize()</a>.</p>

</div>
</div>
<a id="aa4c5df31e4454c1b801c9cc8dc49ed7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4c5df31e4454c1b801c9cc8dc49ed7f">&#9670;&nbsp;</a></span>UserRtlAllocMem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PVOID UserRtlAllocMem </td>
          <td>(</td>
          <td class="paramtype">ULONG&#160;</td>
          <td class="paramname"><em>uBytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00299_source.html">imminit.c</a> 第 <a class="el" href="a00299_source.html#l00067">67</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;{</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">return</span> LocalAlloc(LPTR, uBytes);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a11e5f86f5ec24b989012a66ead19ac73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11e5f86f5ec24b989012a66ead19ac73">&#9670;&nbsp;</a></span>UserRtlFreeMem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID UserRtlFreeMem </td>
          <td>(</td>
          <td class="paramtype">PVOID&#160;</td>
          <td class="paramname"><em>pMem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00299_source.html">imminit.c</a> 第 <a class="el" href="a00299_source.html#l00073">73</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;{</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    LocalFree(pMem);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a3fcbeedd003f73b5cd3f896883dd1b37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fcbeedd003f73b5cd3f896883dd1b37">&#9670;&nbsp;</a></span>UserRtlRaiseStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID UserRtlRaiseStatus </td>
          <td>(</td>
          <td class="paramtype">NTSTATUS&#160;</td>
          <td class="paramname"><em>Status</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00299_source.html">imminit.c</a> 第 <a class="el" href="a00299_source.html#l00079">79</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    RtlRaiseStatus(Status);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa03254_html_ab7ac3db019078f20fcf82850b103d097"><div class="ttname"><a href="a03254.html#ab7ac3db019078f20fcf82850b103d097">gcsImeDpi</a></div><div class="ttdeci">CRITICAL_SECTION gcsImeDpi</div><div class="ttdef"><b>Definition:</b> <a href="a03254_source.html#l00020">imm/globals.c:20</a></div></div>
<div class="ttc" id="aa03254_html_a4881f1bbdc40b620a6f39c6b9b0edbf9"><div class="ttname"><a href="a03254.html#a4881f1bbdc40b620a6f39c6b9b0edbf9">pImmHeap</a></div><div class="ttdeci">PVOID pImmHeap</div><div class="ttdef"><b>Definition:</b> <a href="a03254_source.html#l00015">imm/globals.c:15</a></div></div>
<div class="ttc" id="aa03254_html_a10bde0fee9a1b44eafd17dfae0807a12"><div class="ttname"><a href="a03254.html#a10bde0fee9a1b44eafd17dfae0807a12">ghInst</a></div><div class="ttdeci">HINSTANCE ghInst</div><div class="ttdef"><b>Definition:</b> <a href="a03254_source.html#l00014">imm/globals.c:14</a></div></div>
<div class="ttc" id="aa00020_html_ac02f0141c423acd033ecdd2a757a3cc1"><div class="ttname"><a href="a00020.html#ac02f0141c423acd033ecdd2a757a3cc1">gSharedInfo</a></div><div class="ttdeci">SHAREDINFO gSharedInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00040">clglobal.c:40</a></div></div>
<div class="ttc" id="aa02521_html_a6da4f30e256d1a1a5920b1d0a2ec73c2"><div class="ttname"><a href="a02521.html#a6da4f30e256d1a1a5920b1d0a2ec73c2">tagSHAREDINFO::psi</a></div><div class="ttdeci">struct tagSERVERINFO * psi</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01059">user.h:1059</a></div></div>
<div class="ttc" id="aa00020_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_47153d622fb9b44b5267fed192e6cede.html">imm</a></li><li class="navelem"><a class="el" href="a00299.html">imminit.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
